<?php

define('KC_INDEX',True);

require_once '../global.php';

/**
	
	POST过来的参数有 ass、kname、tags、sign
	MD5(ass=[ass]&kname=[kname]&tags=[tags]{info['sign']}) == sign 当一致的时候，验证通过
*/
function king_def(){
	global $king;
	$king->access('portal_express');


	$listid=kc_post('listid');
	$ktitle=kc_post('ktitle');
	$ndate=kc_post('ndate');
	$nlastdate=kc_post('nlastdate');
	$kcontent=kc_post('kcontent');
	$kpath=kc_post('kpath');











    if(!empty($ktitle)){
	$a=$king->db->query("INSERT INTO king__article (listid,ktitle,ndate,nlastdate,kcontent,kpath,k_author) VALUES ('$listid','$ktitle','$ndate','$ndate','$kcontent','$kpath','')");
	if(!empty($a)){
		echo "成功添加".$a;
	}
	}




}



?>